[#ftl]
</head>

<body>

<div id="main">

    <div id="topmenu">
      [#if (Session.user)??] 
        <ul>
        	<li>Logged in as <em>${Session.user.email}</em></li>
        	[#list ["account","logout"] as men]
        	<li[#if currentMenu==men] id="nav-active"[/#if]><a href="${base}/${men}/">[@s.text name="menu.${men}"/]</a></li>
        	[/#list] 
        </ul>
	  [#else]
        <form id="login" action="/login/" method="post">
          <div>
            <input type="text" size="15" name="email" value="email" class="form-reset" id="user"/>
            <input type="password" size="15" name="password" value="password" class="form-reset" id="pass"/>
            <input type="submit" value="Login" id="login-submit"/>
          </div>
        </form>
	  [/#if]
    </div>

    <div id="header" class="box">
        <h1 id="logo"><a href="/">GBIF Index</a></h1>
    </div>

    <div id="nav" class="box">
        <ul>
	    	[#list ["home","species","locations","resources","about"] as men]
	    	<li[#if currentMenu==men] id="nav-active"[/#if]><a href="${base}/${men}/">[@s.text name="menu.${men}"/]</a></li>
	    	[/#list] 
        </ul>    
    </div>
    
    <div id="search">
        <form action="/search" method="get">
            <div>
                <input type="text" size="50" name="q" id="search-input" [#if !q??] class="form-reset"[/#if] value='${q!"... scientific or common names, locations or anything else ..."}' />
                <input type="submit" value="Search" id="search-submit" />
        	</div>
        </form>
    </div>

    <div id="content" class="box">